package com.fengmi.api.goods;

import com.fengmi.entity.goods.MallGoods;
import com.fengmi.entity.goods.MallGoodsSku;
import com.fengmi.entity.vo.CatCascadeVO;
import com.fengmi.entity.vo.CatHotVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("fengmi-goods")
public interface GoodsApi {
    @RequestMapping("/goods/cat/findCatCascade")
    public List<CatCascadeVO> findCatCascade();
    @RequestMapping("/goods/findCatHotGoods")
    public List<CatHotVo> findCatHotGoods();

    @RequestMapping("/goods/findGoods")
    public List<MallGoods> findGoods();

    @RequestMapping("/goods/findGoodsDetail/{spuId}")
    public MallGoods findGoodsDetail(@PathVariable String spuId);

    @RequestMapping("/goods/findSkuById/{skuId}")
    public MallGoodsSku findSkuById(@PathVariable String skuId);
}
